home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Core / InfoDefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  5.4 KB  |  160 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        InfoDefs.h
  3.  
  4.     Contains:    constants used in both the code & resource of Info
  5.  
  6.     Owned by:    Ed Lai
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <8>     12/9/96    EL        1354755: need alert when part kind change
  13.                                     in InfoDialog fails.
  14.          <7>     9/10/96    eeh        1386008: AppleGuide support (incomplete)
  15.          <6>      9/4/96    EL        1306385: Remove user item that are used as
  16.                                     default button in dialog.
  17.          <5>     6/21/96    eeh        task 10008: add buttons etc. for AppleGuide
  18.          <4>     6/19/96    EL        1358681: Resource IDs are in the reserved
  19.                                     range.
  20.          <3>      6/4/96    EL        1323543: Bundled checkbox is now two radio
  21.                                     buttons.
  22.          <2>     3/20/96    EL        1289563: define more constants for the heap
  23.                                     size dialog
  24.         <10>    10/16/95    CC        GM 1292157: Added kPartInfoEditorLabel and
  25.                                     kPartInfoNoEditorText.
  26.          <9>     4/27/95    TÇ        1223529 BB: ODSetPOName and ODSetIconFamily
  27.                                     should tweak file in root part case (Did
  28.                                     name piece)
  29.          <8>     3/28/95    TÇ        #1151710 BB: Toolbox running out of app
  30.                                     heap.  Document Size dialog implemented.
  31.          <7>     3/24/95    CG        Brought back Editor ID field.
  32.          <6>     3/23/95    TÇ        #1151710 BB: Toolbox running out of app
  33.                                     heap. (Not done).  Document Size dialog
  34.                                     partially implemented.  Added constants for
  35.                                     resources.
  36.          <5>     2/24/95    CG        1221029, 1221185: Info dialog appearance
  37.                                     problems.
  38.          <4>     2/10/95    CG        #1187539: Renaming a document using
  39.                                     Document Info handles file name conflicts.
  40.          <3>     9/26/94    TÇ        #1188044 Part Info Checkbox behaviour
  41.          <2>     9/15/94    TÇ        #1183571 implement Settings Extension
  42.          <1>     7/11/94    TÇ        first checked in
  43.          <1>     7/11/94    TÇ        first checked in
  44.          <1>     7/11/94    TÇ        first checked in
  45.          <0>      7/5/94    SV        SOMverted
  46.          <2>     4/13/94    TÇ        #1147222: Fix the View As popup in the Part
  47.                                     Frame Info dialog.  Also fix the Category
  48.                                     text, and the Kind & Editor popups to show
  49.                                     the current kind & editor respectively.
  50.          <1>    11/18/93    TÇ        first checked in
  51.  
  52.     To Do:
  53. */
  54.  
  55. #ifndef _INFODEFS_
  56. #define _INFODEFS_
  57.  
  58. #ifndef _RSRCBASE_
  59. #include "RsrcBase.h"
  60. #endif
  61.  
  62. #define kPartInfoDlgID            (kODCoreRsrcBase+10)
  63. #define kPartInfoReadOnlyPictID    (kODCoreRsrcBase+10)
  64. #define    kPartInfoKindCntl        (kODCoreRsrcBase+11)
  65. #define    kPartInfoKindMenu        (kODCoreRsrcBase+11)
  66. #define    kPartInfoEditorCntl        (kODCoreRsrcBase+12)
  67. #define    kPartInfoEditorMenu        (kODCoreRsrcBase+12)
  68. #define    kPartInfoViewAsCntl        (kODCoreRsrcBase+13)
  69. #define    kPartInfoViewAsMenu        (kODCoreRsrcBase+13)
  70.  
  71. #define kPartInfoInvalidNameAlertID    (kODCoreRsrcBase+12)
  72. #define kPartInfoLongCommentAlertID    (kODCoreRsrcBase+13)
  73. #define kPartInfoCannotChangeAlertID (kODCoreRsrcBase+14)
  74.  
  75.  
  76. #define kPartInfoVertSep             25
  77. #define kPartInfoHorizSep            26
  78.  
  79. /* Changeable fields in Part Info dialog */
  80. #define kPartInfoOKBtn                   1
  81. #define kPartInfoCancelBtn            2
  82. #define kPartInfoSettingsButton        3
  83. #define kPartInfoCommentsEditFld    4
  84. #define kPartInfoByFld                5
  85. #define kPartInfoModifiedFld        7
  86. #define kPartInfoCreatedFld            9
  87. #define kPartInfoSizeFld            11
  88. #define kPartInfoSep1                 13
  89. #define kPartInfoEditorPopup        14
  90. #define kPartInfoKindPopup            15
  91. #define kPartInfoCategoryFld        16
  92. #define kPartInfoSep2                18
  93. #define kPartInfoShowLinksCheckbox  19
  94. #define kPartInfoShowLinksText        20
  95. #define kPartInfoStationeryCheckbox    21
  96. #define kPartInfoStationeryText        22
  97. #define kPartInfoActPartRadBtn        23
  98. #define kPartInfoSelPartRadBtn        24
  99. #define kPartInfoViewAsPopup        25
  100. #define kPartInfoNameEditFld        26
  101. #define kPartInfoPartThumbnail      28
  102. #define kPartInfoIDFld                29
  103. #define kPartInfoMemorySizeButton    31
  104. #define kPartInfoEditorLabel        32
  105. #define kPartInfoNoEditorText        33
  106. #define kPartInfoBundledText        34
  107. #define kPartInfoReadOnlyPict        35
  108. #define kPartInfoReadOnlyText        36
  109. #define kPartInfoActPartText        37
  110. #define kPartInfoSelPartText        38
  111. #define kPartInfoAppleGuideButton    39
  112.  
  113. // Strings used by Part Info dialogs
  114. #define kODPartInfoSizeInBytes            (kODCoreRsrcBase+10)
  115. #define kODPartInfoSizeInK                (kODCoreRsrcBase+11)
  116. #define    kODDocumentInfoWindowName        (kODCoreRsrcBase+12)
  117. #define kODPartInfoStrUnknownID            (kODUtilitiesRsrcBase+0)
  118.  
  119. // Other Strings used by InfoUtil
  120. #define    kODInfoUtilStrsID                (kODUtilitiesRsrcBase+1)
  121. #define kODStrIndNoKinds                    1
  122. #define kODStrIndNoEditors                    2
  123.  
  124. /* Document Heap dialog defines */
  125. /* resource ids in the 265-269 range in this file are reserved for the Doc Heap dialog */
  126.  
  127. #define kDocHeapDlgID            (kODCoreRsrcBase+15)
  128.  
  129. #define kArrowBtnsCntlID        (kODCoreRsrcBase+15)
  130.  
  131. #define kPICTRsrcType            'PICT'
  132. #define kSIZERsrcType            'SIZE'
  133.  
  134. #define kArrowBtnsPictOffID        (kODCoreRsrcBase+15)
  135. #define kArrowBtnsPictTopOnID    (kODCoreRsrcBase+16)
  136. #define kArrowBtnsPictBotOnID    (kODCoreRsrcBase+17)
  137.  
  138.  
  139. #define kDocHeapOKBtn                           1
  140. #define kDocHeapCancelBtn                    2
  141. #define kDocHeapDefaultSizeRadBtn            3
  142. #define kDocHeapDefaultSizeFld                4
  143. #define kDocHeapDefaultSizeBotBtnRect        5
  144. #define kDocHeapPreferdSizeRadBtn            6
  145. #define kDocHeapPreferdSizeFld                7
  146. #define kDocHeapPreferdSizeBotBtnRect         8
  147. #define kDocHeapMakeChangeStatText             9
  148. #define kDocHeapDocumentNameFld                10
  149. #define kDocHeapDefaultKStatText            11
  150. #define kDocHeapPreferdKStatText            12
  151. #define kDocHeapDefaultSizeTopBtnRect         13
  152. #define kDocHeapDefaultSizeBtns                14
  153. #define kDocHeapPreferdSizeTopBtnRect        15
  154. #define kDocHeapPreferdSizeBtns                16
  155. #define kDocHeapChangeNextLaunchStatText    19
  156. #define kDocHeapAppleGuideButton             20
  157.  
  158.  
  159. #endif // _INFODEFS_
  160.